<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<meta content="yes" name=" apple-mobile-web-app-capable" />
	<title>去保养—有人情味的保养</title>
	<link rel="stylesheet" href="{:C('WEB_URL')}Public/mobile/css/adj.css" />
</head>
<body>
	<header>
		<div class="header-box p-container w-box">
			<div class="back-twrap w1">
				<a href="javascript:window.parent.enterData.closeOrderInfo();"><em class="back-btn"></em></a>
			</div>
			<div class="title-twrap w1 txt-el">服务完毕</div>
			<div class="phone-twrap w1">
				<a href="#"><em class="phone-btn"></em></a>
			</div>
		</div>
	</header>
	<div class="content">
		<div class="container service-e-box">
			<div class="service-end">
				<img src="{:C('WEB_URL')}Public/mobile/images/adj/service-end.png" alt="" />
			</div>
			<div class="service-txt">
				<p>本次保养花费{$order['all_price']}元，为您节省了{$order['total_price']-$order['all_price']}元。</p>
				<p>欢迎下次继续光临本店！</p>
			</div>
		</div>
		<div class="waitcar-btn container btn-c">
			<a href="javascript:void(0)" data-type="toOrder" class="J_btnOrderOver">查看保养报告</a>
		</div>
		<div class="end-line container">
			<span>或</span>
		</div>
		<div class="waitcar-btn container mt0">
			<a href="javascript:void(0)" class="J_btnOrderOver">返回保养主页</a>
		</div>
	</div>

	<input type="hidden" id="J_orderId" value="{$order['order_id']}">
	<include file="Public/adjBaseHtml" />
	<script>
		$(function(){
			$(".J_btnOrderOver").click(function(e){

				var orderId=$("#J_orderId").val();

				$.ajax({
					type:"post",
					dataType:"json",
					data:{"orderId":orderId},
					url:"/adj/orderOver",
					success:function(res){
						if($(this).attr("data-type")=="toOrder"){
							window.parent.location.href='/mobile/myOrderInfoQBY.html?id=orderId';
						}else{
							window.parent.location.href='/mobile/';
						}
					}
				})
			})
		})
	</script>
</body>
</html>